﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class authorService
    {
        #region getbyID
        public static authorInfo getbyID(int authorID)
        {
            return authorController.getbyID(authorID);
        }
        #endregion

        #region getAll
        public static DataTable getAll()
        {
            return authorController.ListAuthor();
        }
        #endregion

        #region insert
        public static bool insertAuthor(authorInfo objAuthor)
        {
            return authorController.insertAuthor(objAuthor);
        }
        #endregion

        #region update
        public static bool updateAuthor(authorInfo objAuthor)
        {
            return authorController.updateAuthor(objAuthor);
        }
        #endregion

        #region delete
        public static bool deleteAuthor(int authorID)
        {
            return authorController.deleteAuthor(authorID);
        }
        #endregion

        #region checkAuthor
        public static bool checkAuthor(int authorID) {
            return authorController.checkAuthor(authorID);
        }
        #endregion
    }
}
